package com.ztf0337.mycurriculumdesign.Utils;

import java.lang.reflect.ParameterizedType;

public class TransitionUtils {
    public static String transParkType(String type) {
        if (type == null) return "未知类型";

        switch (type) {
            // 英文转中文
            case "ELECTRIC_SMALL_CAR":
                return "小型电动车";
            case "ELECTRIC_MEDIUM_CAR":
                return "中型电动车";
            case "ELECTRIC_LARGE_CAR":
                return "大型电动车";
            case "GASOLINE_SMALL_CAR":
                return "小型燃油车";
            case "GASOLINE_MEDIUM_CAR":
                return "中型燃油车";
            case "GASOLINE_LARGE_CAR":
                return "大型燃油车";

            // 中文转英文
            case "小型电动车":
                return "ELECTRIC_SMALL_CAR";
            case "中型电动车":
                return "ELECTRIC_MEDIUM_CAR";
            case "大型电动车":
                return "ELECTRIC_LARGE_CAR";
            case "小型燃油车":
                return "GASOLINE_SMALL_CAR";
            case "中型燃油车":
                return "GASOLINE_MEDIUM_CAR";
            case "大型燃油车":
                return "GASOLINE_LARGE_CAR";

            default:
                return "未知类型";
        }
    }



}
